package com.aplink.generic.pojo.formdesign;

import java.io.Serializable;

import android.text.TextUtils;

import com.aplink.generic.constant.type.SharePreferenceType;

public class Column implements Serializable {
	private static final long serialVersionUID = -7091601390309642676L;
	private String mColumnName;
	private String mDefaultValue;
	private String mPassedColumnID;
	private SharePreferenceType mPreferenceType;

	public String getColumnName() {
		if (TextUtils.isEmpty(this.mPassedColumnID)) {
			return this.mColumnName;
		}
		return this.mPassedColumnID;
	}

	public String getDefaultValue() {
		return this.mDefaultValue;
	}

	public String getPassedColumnID() {
		return this.mPassedColumnID;
	}

	public SharePreferenceType getPreferenceType() {
		return this.mPreferenceType;
	}

	public String getRealColumnName() {
		return this.mColumnName;
	}

	public void setColumnName(final String columnName) {
		this.mColumnName = columnName;
	}

	public void setDefaultValue(final String defaultValue) {
		this.mDefaultValue = defaultValue;
	}

	public void setPassedColumnID(final String passedColumnID) {
		this.mPassedColumnID = passedColumnID;
	}

	public void setPreferenceType(final SharePreferenceType preferenceType) {
		this.mPreferenceType = preferenceType;
	}

}
